var requrl = $request.url;
var rsp=$response.body;
var newurl = "http://190.92.230.113:9201/imapi/pushdata";

if(requrl.indexOf("imapp/spu?spuId=")!=-1 || requrl.indexOf("/size/detail?")!=-1){
    var datajson = {"requrl":requrl,"rspbody":rsp}
    var newbody = JSON.stringify(datajson);

    let params = {
        url: newurl,
        headers: {
            'Content-Type': "application/json"
        },
        body: newbody,
    }

    $httpClient.post(params, function(error, response, data) {
        
    })
}
